@import "@/styles/variables.scss";
.container {
  height: $navBarHeight;
  @include normalFlex();
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);

  .nav-left {
    height: 100%;
    .logo {
      width: $logoWidth;
      height: $logoHeight;
      // 引入精灵图
      @include bgSpride();
      // 定位
      background-position: 0px -48px;
      &:hover {
        cursor: pointer;
      }
    }
    .text {
      text-indent: -1000px;
      margin: 0;
      height: 0;
    }
    // flex: 1;
  }

  .nav-right {
    width: 100%;
    height: 100%;
    @include normalFlex(row, flex-end);
    align-items: center;
    // & > div {
    //   height: 100%;
    //   line-height: $navBarHeight;
    // }

    .cart {
      position: relative;
      margin-left: 30px;
      height: $cartHeight;
      width: $cartWidth;
      @include bgSpride();
      background-position: -110px -157px;
      .tip {
        display: block;
        position: absolute;
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        line-height: 20px;
        @include bgSpride();
        background-position: -156px -158px;
        font-size: 14px;
        color: #fff;
        text-align: center;
      }
    }

    .login {
      margin-left: 30px;
      height: 100%;
      line-height: $navBarHeight;
      .text {
        height: 100%;
        display: inline-block;
        font-size: 14px;
      }
      .arrow {
        display: inline-block;
        margin-left: 10px;
        width: 24px;
        height: 15px;
        line-height: $navBarHeight;
        background: url(~/assets/images/arrow-d.png) no-repeat center;
        background-size: cover;
        &:hover {
          background: url(~/assets/images/arrow-u.png) no-repeat center;
          background-size: cover;
        }
      }
    }
  }
}
